package com.community.service;

import java.util.List;

import com.community.entity.ArticleCommet;

public interface IArticleCommetService {
	
	/**
	 * 根据文章id获取评论信息
	 * @return
	 */
	public List<ArticleCommet> getArticleCommetListByArticleId(Long articleId);
	
	/**
	 * 添加评论
	 * @param articleCommet
	 */
	public void addArticleCommet(ArticleCommet articleCommet);
	
	/**
	 * 根据用户获取评论
	 * @param articleId
	 * @return
	 */
	public List<ArticleCommet> getArticleCommetListByuserId(Long userid);
	
	/**
	 * 根据id获取评论信息
	 * @param id
	 * @return
	 */
	public ArticleCommet getArticleCommetById(Long id);
	
	public void deleteArticleCommet(ArticleCommet a);
}
